package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IDeviceDataService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author MJJ
 */
@Component("deviceDataTask")
@Slf4j
public class DeviceDataTask {

    @Autowired
    private IDeviceDataService deviceDataService;
    //定时清理15天以前的设备数据
    public void clearDeviceDataJob() {

        deviceDataService.deleteDeviceDataByDay();
        log.info("删除设备数据成功......");
    }
}
